<div class="row-fluid box">	<!-- sortable -->
	<!-- <div class="box-header well">
		<h2><i class="icon-info-sign"></i> 过滤</h2>
		<div class="box-icon">
			<a href="#" class="btn btn-minimize btn-round loadClick" title="隐藏">
				<i class="icon-chevron-down"></i>
			</a>
		</div>
	</div>
	 -->
	 
	<div class="box-content">
		<form class="form-horizontal noMarginB" action="<?php echo url('htmltemplate/index'); ?>">
			<fieldset class="son-noMargin posterity-noMarginL">
				<div class="control-group">
					<label class="control-label"><b>区域分类:</b></label>		<!-- autoWidth -->
					<div class="controls">
						<?php if(!empty($beusedTypeAreas)):?>
							<?php foreach($beusedTypeAreas as $k => $area): ?>
					        	<?php $currChecked = ((!empty($filter['type_area_id'])) && in_array($area['id'], $filter['type_area_id']))? true : false; ?>
					        	<label class="checkbox inline">
									<div class="checker">
										<span>
											<input value="<?php echo $area['id']; ?>" name="filter[type_area_id][<?php echo $k; ?>]" type="checkbox" <?php echo $currChecked? 'checked="checked"' : ''; ?> style="opacity: 0;" />
										</span>
									</div> <?php echo $area['name']; ?>
								</label>
							<?php endforeach; ?>
						<?php endif; ?>
					</div>
				</div>
				
				<div class="control-group">
					<label class="control-label"><b>用途分类:</b></label>		<!-- autoWidth -->
					<div class="controls">
						<?php if(!empty($beusedTypeUsings)):?>
					        <?php foreach($beusedTypeUsings as $k => $using): ?>
					        	<?php $currChecked = (!empty($filter['type_using_id']) && in_array($using['id'], $filter['type_using_id']))? true : false; ?>
					        	<label class="checkbox inline">
									<div class="checker">
										<span>
											<input value="<?php echo $using['id']; ?>" name="filter[type_using_id][<?php echo $k; ?>]" type="checkbox" <?php echo $currChecked? 'checked="checked"' : ''; ?> style="opacity: 0;" />
										</span>
									</div> <?php echo $using['name']; ?>
								</label>
							<?php endforeach; ?>
						<?php endif; ?>
					</div>
				</div>
				
				<div class="control-group">
					<label class="control-label"><b>颜色分类:</b></label>		<!-- autoWidth -->
					<div class="controls">
						<?php if(!empty($beusedTypeColors)):?>
					        <?php foreach($beusedTypeColors as $k => $color): ?>
					        	<?php $currChecked = ((!empty($filter['type_color_id'])) && in_array($color['id'], $filter['type_color_id']))? true : false; ?>
					        	<label class="checkbox inline">
									<div class="checker">
										<span>
											<input value="<?php echo $color['id']; ?>" name="filter[type_color_id][<?php echo $k; ?>]" type="checkbox" <?php echo $currChecked? 'checked="checked"' : ''; ?> style="opacity: 0;" />
										</span>
									</div> <?php echo $color['name']; ?>
								</label>
							<?php endforeach; ?>
						<?php endif; ?>
					</div>
				</div>
				
				<div class="control-group">
					<label class="control-label"><b>布局分类:</b></label>		<!-- autoWidth -->
					<div class="controls">
						<?php if(!empty($beusedTypeColumnWidths)):?>
					        <?php foreach($beusedTypeColumnWidths as $k => $cw): ?>
					        	<?php $currChecked = (!empty($filter['type_columnwidth_id']) && in_array($cw['id'], $filter['type_columnwidth_id']))? true : false; ?>
					        	<label class="checkbox inline">
									<div class="checker">
										<span>
											<input value="<?php echo $cw['id']; ?>" name="filter[type_columnwidth_id][<?php echo $k; ?>]" type="checkbox" <?php echo $currChecked? 'checked="checked"' : ''; ?> style="opacity: 0;" />
										</span>
									</div> <?php echo $cw['name']; ?>
								</label>
							<?php endforeach; ?>
						<?php endif; ?>
					</div>
				</div>
				
				<div class="control-group">
					<label class="control-label"><b>侧边栏分类:</b></label>		<!-- autoWidth -->
					<div class="controls">
						<?php if(!empty($beusedTypeSidebarCorners)):?>
					        <?php foreach($beusedTypeSidebarCorners as $k => $sc): ?>
					        	<?php $currChecked = (!empty($filter['type_sidebarcorner_id']) && in_array($sc['id'], $filter['type_sidebarcorner_id']))? true : false; ?>
					        	<label class="checkbox inline">
									<div class="checker">
										<span>
											<input value="<?php echo $sc['id']; ?>" name="filter[type_sidebarcorner_id][<?php echo $k; ?>]" type="checkbox" <?php echo $currChecked? 'checked="checked"' : ''; ?> style="opacity: 0;" />
										</span>
									</div> <?php echo $sc['name']; ?>
								</label>
							<?php endforeach; ?>
						<?php endif; ?>
					</div>
				</div>
				
				<div class="control-group">
					<label class="control-label"></label>
					<div class="controls">
						<div class="btn-group">
							<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">
								筛选
								<span class="caret"></span>
							</button>
							<ul class="dropdown-menu">
								<li><a><input class="btn span12" type="submit" name="search_mode_all" value="完全匹配查询(精确)" /></a></li>
								<li><a><input class="btn btn-inverse span12" type="submit" name="search_mode_part" value="仅需部分匹配查询" /></a></li>
							</ul>
						</div>
					</div>
				</div>
			</fieldset>
		</form>
	</div>
</div>